package org.mall.modules.order.pojo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/***
 *@author yinxucun
 *@date 2019-11-14 15:22 
 */
@Data
public class OrderParams {

    @NotNull(message = "商铺ID不允许为空")
    @Size(min = 1,max = 32)
    private String goodsId;


    @NotNull(message = "用户ID不允许为空")
    @Size(min = 1,max = 32,message = "用户ID长度错误")
    private java.lang.String memberId;

    private java.lang.String note;



    @NotNull(message = "店铺ID不能为空")
    @Size(min = 1,max = 32)
    private java.lang.Integer supplierId;

    @NotNull(message = "店铺名称不能为空")
    @Size(min = 1,max = 40)
    private java.lang.String supplierName;

    //TODO 添加优惠券数据


    private List<GoodsInfoDTO> list;





}
